package com.taoym.voucher.xcx.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @coder taoym
 * @datetime 2021/6/10 17:18
 * @desc
 */
@Data
public class XcxGetSearchDealsVO implements Serializable {

    private List<Record> records;

    @Data
    public static class Record implements Serializable {
        private DealBaseInfo dealBaseInfo;
        private DealDetail dealDetail;
        private ShopInfo shopInfo;
        private CouponInfo couponInfo;
    }

    @Data
    public static class DealDetail implements Serializable {
        @ApiModelProperty(example = "半年销量")
        private Integer halfYearSale;
    }


    @Data
    public static class DealBaseInfo implements Serializable {
        @ApiModelProperty(example = "图片")
        private String defaultPic;
        @ApiModelProperty(example = "标题")
        private String dealTitle;
        @ApiModelProperty(example = "描述")
        private String description;
        @ApiModelProperty(example = "市场价")
        private Integer marketPrice;
        @ApiModelProperty(example = "拼团价")
        private Integer realPrice;
        @ApiModelProperty(example = "最终价")
        private Integer finalPrice;
    }

    @Data
    public static class ShopInfo implements Serializable {
        @ApiModelProperty(example = "店铺名称")
        private String shopName;
        @ApiModelProperty(example = "距离")
        private String distanceToShow;
        @ApiModelProperty(example = "店铺地址")
        private String address;
    }

    @Data
    public static class CouponInfo implements Serializable {
        @ApiModelProperty(example = "满减金额")
        private Integer discountPrice;
        @ApiModelProperty(example = "满减门槛")
        private Integer priceLimit;
        @ApiModelProperty(example = "领券页面小程序地址")
        private String miniProgramUrl;
    }
}
